package com.shareyi.joywindow;

import com.shareyi.joywindow.server.HttpServer;

/**
 * 
 * the JoyWindowData class 
 * this class is used to store joywindow instance and httpServer instance so that you can get them from this class.
 * 
 * @author David zhang
 * @date 2013-07-13
 */



public class JoyWindowData {

	private static JoyWindowIntf joyWindow;
	private static HttpServer httpServer;

	/**
	 * get the joywindow instance,you should set it when you initial the joywindow instance 
	 * @return joywindowIntf
	 */
	public static JoyWindowIntf getJoyWindow() {
		return joyWindow;
	}
	
	
	/**
	 * set joywindow when you initial the joywindow instance ,so that you can get from this static property
	 * @param joyWindow
	 */
	public static void setJoyWindow(JoyWindowIntf joyWindow) {
		JoyWindowData.joyWindow = joyWindow;
	}
	
	
	/**
	 * get the HttpServer instance,you should set it when you initial the httpServer instance 
	 * @return HttpServer
	 */
	public static HttpServer getHttpServer() {
		return httpServer;
	}
	
	

	/**
	 * set httpServer when you initial the httpServer instance ,so that you can get from this static property
	 * @param httpServer
	 */
	public static void setHttpServer(HttpServer httpServer) {
		JoyWindowData.httpServer = httpServer;
	}
	
	
	
	
	
}
